﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace assignment6
{
    public partial class DeleteOrderForm : Form
    {
        OrderService orderService;
        public DeleteOrderForm(OrderService os)
        {
            orderService= os;
            InitializeComponent();
        }

        private void submit_Click(object sender, EventArgs e)
        {
            orderService.RemoveOrder(int.Parse(id_input.Text));
            this.Text = "删除成功";
        }
    }
}
